package com.slkj.shilixiaoyuanapp.entity.parent;

import android.os.Parcel;
import android.os.Parcelable;

import com.contrarywind.interfaces.IPickerViewData;
import com.slkj.shilixiaoyuanapp.entity.base.BaseChoseEntity;

import java.util.List;

/**
 * 作者：何磊 on 2018/10/11 16:14
 * 描述：
 */
public class BodyartspecialtyEntity {

    private List<ArtEntity> art;
    private List<LevelEntity> level;
    private List<AwardLevelEntity> awardLevel;
    private List<AuditorEntity> auditor;
    private List<SportEntity> sport;

    public List<ArtEntity> getArt() {
        return art;
    }

    public void setArt(List<ArtEntity> art) {
        this.art = art;
    }

    public List<LevelEntity> getLevel() {
        return level;
    }

    public void setLevel(List<LevelEntity> level) {
        this.level = level;
    }

    public List<AwardLevelEntity> getAwardLevel() {
        return awardLevel;
    }

    public void setAwardLevel(List<AwardLevelEntity> awardLevel) {
        this.awardLevel = awardLevel;
    }

    public List<AuditorEntity> getAuditor() {
        return auditor;
    }

    public void setAuditor(List<AuditorEntity> auditor) {
        this.auditor = auditor;
    }

    public List<SportEntity> getSport() {
        return sport;
    }

    public void setSport(List<SportEntity> sport) {
        this.sport = sport;
    }

    public static class ArtEntity implements IPickerViewData {
        /**
         * id : 1
         * name : 喜剧
         */

        private int id;
        private String name;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String getPickerViewText() {
            return name;
        }
    }

    public static class LevelEntity implements IPickerViewData {
        /**
         * lName : 一等奖
         * lId : 1
         */

        private String lName;
        private int lId;

        public String getLName() {
            return lName;
        }

        public void setLName(String lName) {
            this.lName = lName;
        }

        public int getLId() {
            return lId;
        }

        public void setLId(int lId) {
            this.lId = lId;
        }

        @Override
        public String getPickerViewText() {
            return lName;
        }
    }

    public static class AwardLevelEntity implements IPickerViewData {
        /**
         * aName : 国家级
         * aId : 1
         */

        private String aName;
        private int aId;

        public String getAName() {
            return aName;
        }

        public void setAName(String aName) {
            this.aName = aName;
        }

        public int getAId() {
            return aId;
        }

        public void setAId(int aId) {
            this.aId = aId;
        }

        @Override
        public String getPickerViewText() {
            return aName;
        }
    }

    public static class AuditorEntity extends BaseChoseEntity implements IPickerViewData,Parcelable {
        /**
         * uId : 4
         * uName : 邓平平
         * headImg : http://47.106.8.136:8081/images/school3/head/1534823090482.png
         */

        private int uId;
        private String uName;
        private String headImg;

        protected AuditorEntity(Parcel in) {
            uId = in.readInt();
            uName = in.readString();
            headImg = in.readString();
        }

        public static final Creator<AuditorEntity> CREATOR = new Creator<AuditorEntity>() {
            @Override
            public AuditorEntity createFromParcel(Parcel in) {
                return new AuditorEntity(in);
            }

            @Override
            public AuditorEntity[] newArray(int size) {
                return new AuditorEntity[size];
            }
        };

        public int getUId() {
            return uId;
        }

        public void setUId(int uId) {
            this.uId = uId;
        }

        public String getUName() {
            return uName;
        }

        public void setUName(String uName) {
            this.uName = uName;
        }

        public String getHeadImg() {
            return headImg;
        }

        public void setHeadImg(String headImg) {
            this.headImg = headImg;
        }

        @Override
        public String getPickerViewText() {
            return uName;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(uId);
            dest.writeString(uName);
            dest.writeString(headImg);
        }
    }

    public static class SportEntity implements IPickerViewData{
        /**
         * id : 1
         * name : 球
         */

        private int id;
        private String name;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String getPickerViewText() {
            return name;
        }
    }
}
